home *** CD-ROM | disk | FTP | other *** search
- /****i* SOURCE_FILE/INFO
- *
- * NAME
- * Level.js
- *
- * USAGE
- * Part of Netobjects JavaScript Library.
- *
- * COPYRIGHT
- * Copyright ⌐ 2000-2005 Website Pros, Inc.
- * All Rights Reserved.
- *
- * This is an unpublished work protected by Website Pros, Inc.
- * as a trade secret, and is not to be used or disclosed except as
- * expressly provided in a written license agreement executed by
- * you and Website Pros, Inc.
- *
- * <copyright@websitepros.com>
- *
- * NOTES
- * JavaScript code.
- *
- *****/
-
- if (!IS_isModuleInitialized("IS.NOF.UTIL.LOGGING.Level"))
- {
- /****h* NOF_JavaScript_Library/NOF.UTIL.LOGGING.Level
- *
- * NAME
- * NOF.UTIL.LOGGING.Level
- *
- * DESCRIPTION
- *
- * Level is a class (actually, an interface) which specifies the possible log levels
- * for a fine-grained control of the LOGGING mechanism.
- * The levels in descending order are:
- * <ul>
- * <li>SEVERE
- * <li>WARNING
- * <li>INFO
- * <li>CONFIG
- * <li>FINE
- * <li>FINER
- * <li>FINEST
- * </ul>
- * They are represented internal as integers and can be denominated through Level.LEVEL_NAMES list, i.e.
- * LOGGING.Level.LEVEL_NAMES[LOGGING.Level.INFO] will have the value of "INFO".
- * Enabling LOGGING at a given level also enables LOGGING at all higher levels.
- *
- ****/
-
- /**
- * constructor
- **/
- function LOGGING_Level( ) {
- this.__proto__ = LOGGING_Level.prototype;
- }
- {
- var member = LOGGING_Level.prototype;
- member.CLASS_NAME = "LOGGING.Level";
-
- member.SEVERE = 0; //(highest value)
- member.WARNING = 1;
- member.INFO = 2;
- member.CONFIG = 3;
- member.FINE = 4;
- member.FINER = 5;
- member.FINEST = 6;
- member.LEVEL_NAMES = ["SEVERE", "WARNING", "INFO", "CONFIG", "FINE", "FINER", "FINEST"];
- }
- LOGGING.__proto__.Level = new LOGGING_Level();
- }